<?php


namespace ba;

use Throwable;
use PhpZip\ZipFile;
use FilesystemIterator;
use RecursiveIteratorIterator;
use RecursiveDirectoryIterator;

/**
 * 访问和操作文件系统
 */
class IdNamePhone
{
     const URL = 'https://verifyphon.market.alicloudapi.com/id_name_phone';


     public function IdNamePhone($id,$name,$phone){
         $data = [
            'id' => $id,
            'name' => $name,
            'phone' => $phone,
         ];
         $headers = [
             "Authorization: APPCODE " . config('setting.aliyun')['appCode'],
             "Content-Type: application/x-www-form-urlencoded; charset=UTF-8"
         ];
         $res = httpRequest(self::URL,'POST',$headers,http_build_query($data));

         return $res;

     }
}

